package actions;

import java.util.Map;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

@Action(value = "/CargarInicio")
@Result(location = "/jsp/principal/frontend.jsp", name = "SUCCESS")
public class CargarInicioAction extends ActionSupport implements SessionAware {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	private Map<String, Object> session;

	public String execute() {
		session = ActionContext.getContext().getSession();
		session.put("contenido", "/jsp/contenido/tablaTesinasFront.jsp");
		session.put("dinamico", "false");

		return "SUCCESS";
	}

	@Override
	public void setSession(Map<String, Object> arg0) {
		// TODO Auto-generated method stub

	}

}
